<html><head><title>ErrorLine</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">ErrorLine()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#3A3966"><b>ErrorLine</b></font>()</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Returns the line number in the source code where the current error occurred. 
This command only returns a meaningful value if there was an error handled by <a href="onerrorcall.html">OnErrorCall()</a> or <a href="onerrorgoto.html">OnErrorGoto()</a>. 
<br>
<br>
The tracking of line numbers needs to be enabled on compilation for this command to return the actual line number. 
To enable this feature, enable the &quot;Enable OnError lines support&quot; checkbox in the <a href="../reference/ide_compiler.html">compiler options</a> 
or specify the /LINENUMBERING (Windows) or --linenumbering (Linux, Mac OSX) command-line switch when compiling 
from the <a href="../reference/cli_compiler.html">command-line</a>. 

</blockquote><p><b>Parameters</b></p><blockquote>
None.


</blockquote><p><b>Return value</b></p><blockquote>

The line number of the error, or -1 if the OnError lines support is disabled. 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=errorfile.html>ErrorFile()</a> - <a href="index.html">OnError Index</a> - <a href="errormessage.html">ErrorMessage()</a> -><br><br>

</body></html>